import assessCheckApi from './api'
import { axios } from '@/utils/request'

export function dict(val) {
  return axios({
    url: assessCheckApi.dict,
    params: {dictName:val},
    method: "GET",
    url_1:'outside'
  })
}

// 解聘登记-分页查询
export function jpdjlbPageList(params){
  return axios({
    url: assessCheckApi.jpdjlbPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 解聘登记-新增-保存
export function saveJpdj(data){
  return axios({
    url: assessCheckApi.saveJpdj,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 解聘登记-删除
export function deleteJpdj(params){
  return axios({
    url: assessCheckApi.deleteJpdj,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 解聘登记-附件上传
export function uploadJpFile(data){
  return axios({
    url: assessCheckApi.uploadJpFile,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 解聘登记-提交
export function submitJpdj(data){
  return axios({
    url: assessCheckApi.submitJpdj,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 解聘登记-根据id查看
export function queryJpdjById(params){
  return axios({
    url: assessCheckApi.queryJpdjById,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 解聘登记-生成解聘人员名单
export function jpdjByScyxrymd(params){
  return axios({
    url: assessCheckApi.jpdjByScyxrymd,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 解聘人员名单-移除名单
export function jpdjBydelete(params){
  return axios({
    url: assessCheckApi.jpdjBydelete,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 解聘人员名单-分页查询
export function jpdjPageList(params){
  return axios({
    url: assessCheckApi.jpdjPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 解聘人员名单-导出名单
export function exportByJpdj(params){
  return axios({
    url: assessCheckApi.exportByJpdj,
    method:'get',
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

// 解聘登记-手动添加人员
export function sddjRymd(data){
  return axios({
    url: assessCheckApi.sddjRymd,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 获取审评员解聘-确认名单流程-审批列表
export function queryJcyJpInQrmdLcList(params){
  return axios({
    url: assessCheckApi.queryJcyJpInQrmdLcList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 发起审评员解聘-确认名单流程
export function initJcyJpInQrmdlc(params){
  return axios({
    url: assessCheckApi.initJcyJpInQrmdlc,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 流程页面表-通过jobid查询
export function queryByJodId(params){
  return axios({
    url: assessCheckApi.queryByJodId,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}

// 流行政事务流程-查看
export function viewXzswlc(params){
  return axios({
    url: assessCheckApi.viewXzswlc,
    method:'get' ,
    params:{...params},
    url_1:'outside',
  })
}

// 行政事务流程-删除
export function deletXzswlc(params){
  return axios({
    url: assessCheckApi.deletXzswlc,
    method:'delete' ,
    params:{...params},
    url_1:'outside',
  })
}

